// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'
import Vuetify from 'vuetify'
import VeeValidate from 'vee-validate';
import VueI18n from 'vue-i18n';
import 'vuetify/dist/vuetify.min.css'
import 'vuetify/es5/util/colors'
import 'github-markdown-css';

import '@/mock' // 引入测试数据

Vue.use(VueI18n)

const i18n = new VueI18n()

Vue.use(VeeValidate);

Vue.use(Vuetify, {
  iconfont: 'md' || 'mdi' || 'fa' || 'fa4',
  options: {
    themeVariations: ['primary', 'secondary', 'accent'],
    extra: {
      mainToolbar: {
        color: 'primary',
      },
      sideToolbar: {},
      sideNav: 'primary',
      mainNav: 'primary lighten-1',
      bodyBg: '',
    }
  }
})

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  i18n,
  render: h => h(App),
})
